package com.yt.quotes.api.util;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;

import org.apache.commons.io.IOUtils;
import org.apache.commons.io.LineIterator;

public class HTTPUtil {
	
	public static LineIterator parse(String address) throws IOException{
		URL url=new URL(address);
		URLConnection conn=url.openConnection();
		InputStream in=conn.getInputStream();
		return IOUtils.lineIterator(in,null);
	} 
}
